<!--
 * @description 退出按钮组件
 * @date 2022/11/12
 -->
<template>
  <div class="logout-comp" :style="{ 'margin-top': top,'margin-bottom': marginBottom }">
    <div class="loginOut">
      <div class="btn" :style="{'height':height,'width':width,'line-height':height,'border-radius':radius,'margin-top': top, 'margin-bottom': bottom}">{{ btnName }}</div>
    </div>
  </div>
</template>

<script>
import mixins from './../mixins'
export default {
  name: 'LogoutComp',
  mixins: [mixins],
  props: {
    option: {
      type: Object,
      default: {}
    },
    isInitData: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      dataList: []
    }
  },
  computed: {
    height() {
      return this.px2rem(this.option.height || 80)
    },
    width() {
      return this.px2rem(this.option.width || 380)
    },
    radius() {
      return this.px2rem(this.option.radius || 40)
    },
    btnName() {
      return this.option.btnName || '退出账号'
    },
    bottom() {
      return this.px2rem(this.option.bottom || 0)
    }
  },
  created() {
  },
  methods: {
  }
}
</script>

<style scoped lang="scss">
@import '@/styles/var.scss';
@import '@/styles/utility/rem.scss';
.loginOut {
        // margin: rem(52) 0 rem(30);
        // height: rem(100);
        // padding-top: rem(10);

        .btn {
          margin: 0 auto;
          @include bg-color($mainColor);
          // border-radius: rem(40);
          color: #fff;
          text-align: center;
          font-size: rem(30);
          font-weight: bold;
          font-family: PingFang SC Medium, PingFang SC Medium-Medium;
        }
      }
</style>
